Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Large item count performance #1170

Merged
merged 46 commits into from
Aug 27, 2024

Conversation

Xon
Copy link
Collaborator

@Xon Xon commented Aug 22, 2024

Performance for large number of items and choices is lacking.

The following bottlenecks have been identified:

  • No end-to-end tests to identify performance issues with large number of items
    • Example e2e page experiencing performance issues
    • e2e test against the page to track and confirm the issues are resolved
  • All items are re-rendered whenever an item is added or removed
    • track the rendered element, and only render it if required

@Xon Xon added bugfix Pull request that fixes an existing bug chore Pull request that does not change core code refactor Pull request that refactors existing functionality labels Aug 22, 2024
@Xon Xon self-assigned this Aug 22, 2024
@Xon Xon changed the title Large item count performance Draft: Large item count performance Aug 23, 2024
@Xon Xon marked this pull request as draft August 23, 2024 00:51
@Xon Xon mentioned this pull request Aug 23, 2024
Xon added 21 commits August 26, 2024 01:15
@Xon Xon force-pushed the large-item-count-performance branch from d1ecaa4 to 1f6415a Compare August 25, 2024 18:43
@Xon
Copy link
Collaborator Author

Xon commented Aug 25, 2024

I've gotten item and choices rendering performance being acceptable, but selecting a choice and it being converted into an item is still doing more work than expected

@Xon Xon marked this pull request as ready for review August 27, 2024 13:15
@Xon Xon merged commit f534235 into Choices-js:main Aug 27, 2024
11 checks passed
@Xon Xon deleted the large-item-count-performance branch August 27, 2024 22:35
@Xon Xon removed the chore Pull request that does not change core code label Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes an existing bug refactor Pull request that refactors existing functionality
Projects
None yet
1 participant